//
//  AppDelegate.m
//  GuoHaoZhongYi_iOS
//
//  Created by 张育铭 on 2019/10/24.
//  Copyright © 2019 赢辉网络科技有限公司. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

- (void)showMainViewController {
    if (_mainTabBarVC == nil) {
        _mainTabBarVC = [BaseTabBar new];
    }
    _mainTabBarVC.selectedIndex    = 0;
    self.window.rootViewController = _mainTabBarVC;
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

    [self showMainViewController];
    [self.window makeKeyAndVisible];
    return YES;
}

 

@end
